<?php

namespace App\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class GiftResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'gift_id' => $this->id,
            'name' => $this->name,
            'cover' => $this->cover_url,
            'price' => $this->price,
            'origin_price' => $this->origin_price,
            'polls' => $this->polls,
        ];
    }
}
